<?php
class UserViewModel extends Model
{
	protected $viewModel = true;

    protected $viewFields = array(

                'User'=>array('id','account','nickname','email','group'=>'roleid','remark','create_time','update_time','status'),

                'Role'=>array('id'=>'rid','name','desc'=>'rdesc'),

                );

	protected $viewCondition = array(

		'User.group'=>array('eqf','Role.id'),

	);
} 
?>